package com.dd.cloud.user.mapper.goods;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dd.cloud.user.entity.goods.ConversionGood;
import com.dd.cloud.user.req.goods.ConversionGoodReq;
import com.dd.cloud.user.res.goods.ConversionGoodExcel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 兑换商品表 Mapper 接口
 * </p>
 *
 * @author czg
 * @since 2024-01-18
 */
public interface ConversionGoodMapper extends BaseMapper<ConversionGood> {

    /**
     * 查询兑换分页列表
     * @param page
     * @param req
     * @return
     */
    Page<ConversionGood> queryConversionGoodRecordPage(@Param("page") Page<ConversionGood> page,
                                                       @Param("req") ConversionGoodReq req);

    /**
     * 导出兑换列表
     * @param req
     * @return
     */
    List<ConversionGoodExcel> exportConversionGoods(@Param("req") ConversionGoodReq req);
}
